﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Teachers.ascx.cs" Inherits="UserControl_Teachers" %>
<div id="demo1">
    <ul>
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="teacher">
            <ItemTemplate>
                <li>
                    <asp:HyperLink ID="HyperLink1" NavigateUrl="~/People.aspx" runat="server">
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# "../images/" + (string)Eval("ImageUrl") %>'
                            AlternateText='<%# (string)Eval("ImageAltText")%>' Width="100" Height="80" /></asp:HyperLink>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
</div>
<asp:SqlDataSource ID="teacher" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnectionString %>"
    SelectCommand="SELECT [imageUrl], [imageAltText] FROM [People]"></asp:SqlDataSource>
